<?php
namespace Admin\Controller;
use Think\Controller;
class ManagerController extends BaseController {
	
    public function edit(){
		if(IS_POST){
			$user = I('user');
			$pwd = I('pwd');
			$mid = I('mid');
			$manager = D('manager');
			if(!$manager->create() ){
				$this->error($manager->getError(),U('edit'),1 );
			}
			
			if( $manager->save() ){
				$this->success('修改成功',U('Admin/Index/right'),1);
			}else{
				$this->success('修改成功',U('edit'),1);
			}
			return;
		}
        $this->display();
    }
	
}